package com.microtf.inscription.framework.pojo.wechat.output;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 回复语音消息
 * @author guliuzhong
 */
@Data
@EqualsAndHashCode(callSuper = true)
@JsonRootName("xml")
public class VoiceMessage extends Message {
    public VoiceMessage() {
        setMsgType("voice");
    }
    @JsonProperty("Voice")
    Voice voice;
    @Builder
    @Data
    public static class Voice{
        /**
         * 通过素材管理中的接口上传多媒体文件，得到的id
         */
        @JsonProperty(value = "MediaId")
        String mediaId;
    }
}
